const loginValues={
    account:null,
    password:null,
}
const state = {
    loginFields: [
        {
            prop: "account",
            type: "input",
            placeholder: "输入账号",
            max: 10,
        },
        {
            prop: "password",
            type: "input.password",
            placeholder: "输入密码",
            max: 10,
        },
    ],
    loginValues:JSON.parse(JSON.stringify(loginValues)),
    loginRules:{
        account:[ { required: true, message: "请输入账号", trigger: "blur" },],
        password:[ { required: true, message: "请输入密码", trigger: "blur" },],
    }
}
const mutations = {
    CHANGEFORM(state){
        state.loginValues=JSON.parse(JSON.stringify(loginValues))
    }

}
const actions = {

}
export default {
    namespaced: true,
    state,
    mutations,
    actions
}

